'''
filename: result
author: yinwenlu
datetime: 2019/11/6 9:49
software: PyCharm
将函数的返回结果格式化
'''

def resultJson(date,code,message,error=0):
    '''
    将数据Json标准化返回
    :param date:
    :param code:
    :param message:
    :return:
    '''
    return {"date":date,"code":code,"message":message,"error":error}